package demo01;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

public class zuoye06 {
    public static void main(String[] args) {
        int[] arr1 = {1,2,3};
        int[] arr2 = {3,4,5,2};
        ArrayList<Integer> arr3 = new ArrayList<>();
        for(int num: arr1){
            arr3.add(num);
        }
        for(int num: arr2){
            arr3.add(num);
        }
        List<Integer> collect = arr3.stream()
        		.filter(t->t!=2&&t!=3)
        		.collect(Collectors.toList());
        System.out.println(collect);
    }
}
